package com.he.DesignPatterns.decorator.demo1;

/**
 * @description: 炒饭类 具体构建角色
 * @Author: HCL
 * @Date: 2024/8/27 11:13
 */
public class FriedRice extends FastFood{

    public FriedRice(){
        super(10d,"炒饭");
    }
    @Override
    public double cost() {
        return getPrice();
    }
}
